# $Id: PKGBUILD 149366 2012-02-07 08:26:35Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=beep
pkgver=1.3
pkgrel=2
pkgdesc="Advanced PC speaker beeping program"
arch=('i686' 'x86_64')
url="http://www.johnath.com/beep"
license=('GPL2')
depends=('glibc')
source=(http://www.johnath.com/beep/${pkgname}-${pkgver}.tar.gz)
sha1sums=('8cba283e507dc9e401da011a9c92a2e24ea2bf70')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  sed -i "s:-Wall:${CFLAGS}:" Makefile
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -D -m755 beep "${pkgdir}/usr/bin/beep"
  install -D -m644 beep.1.gz "${pkgdir}/usr/share/man/man1/beep.1.gz"
}
